package net.pojo;

import java.io.Serializable;
import java.util.List;

public class Grade implements Serializable {
    private int id;
    private String name;
    private String desp;
    private List<Student> studentList;
    public Grade(String name, String desp) {
        this.name = name;
        this.desp = desp;
    }


    @Override
    public String toString() {
        return "Grade{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", desp='" + desp + '\'' +
                ", studentList=" + studentList +
                '}'+"\n";
    }

    public Grade(String name) {
        this.name = name;
    }

    public Grade(int id, String name, String desp) {
        this.id = id;
        this.name = name;
        this.desp = desp;
    }

    public Grade() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
